﻿using System;

namespace Wxy.Action
{
    /// <summary>
    /// 定义的有效按键对应的命令
    /// </summary>
    [Serializable]
    public enum KeyMap
    {
        Punch = 100,
        Kick = 101,
        Backward = 4,
        UpBackward = 7,
        Up = 8,
        UpForward = 9,
        Forward = 6,
        DuckForward = 3,
        Duck = 2,
        DuckBackward = 1,
        NoDirection = 0, //没有输入方向
        NoInput = -1 //没有输入任何按钮
    }

    [Serializable]
    public struct ActionCommand
    {
        /// <summary>
        /// 按键顺序
        /// </summary>
        public KeyMap[] keySequence;

        /// <summary>
        /// 检查的按键最远的一次操作距离现在的最远时间（秒）
        /// </summary>
        public float validInSec;
    }
}